import type { RouteRecordRaw } from 'vue-router';
import { $t } from '@/locales';

function Layout() {
  return import('@/layouts/index.vue');
}

const routes: RouteRecordRaw = {
  path: '/vatinvoinceprintlog',
  component: Layout,
  redirect: '/vatinvoinceprintlog/index',
  name: 'vatinvoinceprintlog',
  meta: {
    title: '专票打印管理',
    icon: 'icon_print',
  },
  children: [
    {
      path: 'index',
      name: 'vatinvoinceprintlogIndex',
      component: () => import('@/views/dcp/vatinvoinceprintlog/index.vue'),
      meta: {
        title: '专票打印记录',
        singleMenu: true,
        i18n: $t('route.dcp.managementPlatform.vatinvoinceprintlog'),
        auth: 'vatinvoinceprintlog_index',
        activeIcon: 'system-point',
      },
    },
  ],
};

export default routes;
